From: Torok Edwin Date: Wed, 15 Jul 2015 13:33:23 +0000 (+0300) Subject: Use CCLINKFLAGS for linking all executables and shared libraries X-Git-Tag: archive/raspbian/5.4.0-2+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=af3ec62bb8d73fcc3c3500c9ebcc5eb9a8de500d;p=ocaml.git Use CCLINKFLAGS for linking all executables and shared libraries This allows packagers to set additional linker flags for executables and shared libraries created by OCaml, and for the OCaml tools themselves. OCaml code can be linked with various C stubs and C libraries that would benefit from using hardening link flags, such as -Wl,-z,relro. Origin: other Bug-Debian: https://bugs.debian.org/702349 Forwarded: no Last-Update: <2021-12-21> Gbp-Pq: Name Use-CCLINKFLAGS-for-linking-all-executables-and-shar.patch --- diff --git a/configure.ac b/configure.ac index 0535f404..e7772b90 100644 --- a/configure.ac +++ b/configure.ac @@ -1450,6 +1450,10 @@ AS_CASE([$target], [oc_ldflags="$oc_ldflags -Wl,-z,nobtcfi" natdynlinkopts="$natdynlinkopts -Wl,-z,nobtcfi"]) +# Use CCLINKFLAGS for linking all executables and shared libraries + +mksharedlib="$mksharedlib $CCLINKFLAGS" +mkexe="$mkexe $CCLINKFLAGS" # Configure native dynlink